package model

type SysMenu struct {
	MenuId   uint   `gorm:"primary_key;AUTO_INCREMENT;comment:菜单id" json:"menuId"`
	ParentId uint   `gorm:"type:bigint;comment:父菜单ID，一级菜单为0" json:"parentId"`                           //父菜单ID，一级菜单为0
	Name     string `gorm:"type:VARCHAR(50);comment:菜单名称" json:"name"`                                  //菜单名称
	Url      string `gorm:"type:VARCHAR(100);comment:菜单URL" json:"url"`                                 //菜单URL
	Perms    string `gorm:"type:VARCHAR(500);comment:授权(多个用逗号分隔，如：user:list,user:create)" json:"perms"` //授权(多个用逗号分隔，如：user:list,user:create)
	Type     int    `gorm:"type:int;comment:类型 1:目录   2:菜单   3:按钮" json:"type"`                         //类型   1:目录   2:菜单   3:按钮
	Icon     string `gorm:"type:VARCHAR(50);comment:菜单图标" json:"icon"`                                  //菜单图标
	OrderNum int    `gorm:"type:int;comment:排序" json:"orderNum"`                                        //排序
}
